PlatformView

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val host: V?

Functions

Link copied to clipboard
fun host(block: (V) -> Unit): Unit?
Link copied to clipboard
override fun HostView(modifier: Modifier = Modifier)
Link copied to clipboard
fun Monitor(key1: Any?, block: suspend CoroutineScope.(V) -> Unit)

等同于 LaunchedEffect, 但会监听自身创建。 因为重组是无序的,使用 Monitor 可以避免 HostView 未被创建时就触发了 key 变化而后续不触发的问题。

fun Monitor(vararg keys: Any?, block: suspend CoroutineScope.(V) -> Unit)
fun Monitor(key1: Any?, key2: Any?, block: suspend CoroutineScope.(V) -> Unit)